pass through customs

Translations
пройти через таможню
He had to pass through customs before entering the country.
Ему пришлось пройти через таможню перед въездом в страну.